<template>
  <div>
    <MemberDetail :json_path="json_path" :mt="mt"/>
  </div>
</template>

<script>
import MemberDetail from '../components/Member/MemberDetail.vue'



export default {
  components: { MemberDetail },
  data() {
    return {
      json_path: "",
      mt: "",
    };
  },
  watch: {
    //监听路由是否变化
    '$route' (to, from) { 
      if(to.query.uuid != from.query.uuid){
        this.init();
      }
    }
  },
  created() {
    this.init();
  },
  methods: {
    init() {
      this.json_path =  "/json/member-uuid/"+ this.$route.query.uuid+".json";
      this.mt =  this.$route.query.mt;
      // console.log(this.json_path);
    },
  },
}
</script>

<style>

</style>
